﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;

namespace BusinessLogic
{
    public interface IDatabaseHandler
    {
        bool CreateUser(string username, string password);
        IEnumerable<News> GetNewsPosts();
        string[] GetRoles(string username);
        bool ValidateUser(string username, string password);
        bool SaveImage(string name, string url);
        string GetUrl(string name);
        bool DeleteImage(string id);
        IEnumerable<Images> GetImagelist();
        bool AddNews(string headline, string text);
        bool DeleteNews(string id);
        bool EditNews(string id, string headline, string message);
    }
}
